import request from '@/utils/request'

// 查询诊所信息列表
export function listClinic(query) {
  return request({
    url: '/hms/clinic/list',
    method: 'get',
    params: query
  })
}

// 查询诊所信息详细
export function getClinic(id) {
  return request({
    url: '/hms/clinic/' + id,
    method: 'get'
  })
}

// 新增诊所信息
export function addClinic(data) {
  return request({
    url: '/hms/clinic',
    method: 'post',
    data: data
  })
}

// 修改诊所信息
export function updateClinic(data) {
  return request({
    url: '/hms/clinic',
    method: 'put',
    data: data
  })
}

// 删除诊所信息
export function delClinic(id) {
  return request({
    url: '/hms/clinic/' + id,
    method: 'delete'
  })
}

// 导出诊所信息
export function exportClinic(query) {
  return request({
    url: '/hms/clinic/export',
    method: 'get',
    params: query
  })
}